package com.yxw.springmvc.userBehavior.convert;

import com.yxw.springmvc.userBehavior.model.BasicPriv;
import com.yxw.springmvc.userBehavior.request.BasicPrivAddRequest;
import org.springframework.stereotype.Service;

/**
 * Created by hp on 2016/9/29.
 */
@Service
public class BasicPrivConvert {
    public BasicPriv convert(BasicPrivAddRequest request){
        BasicPriv basicPriv = new BasicPriv();
        basicPriv.setParentPriv(request.getParentPriv());
        basicPriv.setPrivCode(request.getPrivCode());
        basicPriv.setPrivName(request.getPrivName());
        basicPriv.setPrivType(request.getPrivType());
        return basicPriv;
    }
}
